package com.jason.game.online.home.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.cby.library.data.model.RecAdBean;
import com.cby.library.widget.adapter.SimpleBaseAdapter;
import com.jason.game.online.R;

import java.util.List;

/**
 * 描述信息
 *
 * @author 徐智伟
 * @create 2018/11/28
 */
public class GameListItemRec1Adapter extends SimpleBaseAdapter<RecAdBean> {


  public GameListItemRec1Adapter(Context context,
      List<RecAdBean> data) {
    super(context, data);
  }

  @Override
  public int getItemResource() {
    return R.layout.item_home_ad_1;
  }

  @Override
  public View getItemView(int position, View convertView, ViewGroup parent,
      ViewHolder holder) {

    ImageView imageView = holder.findView(R.id.iv_recommend_icon);
//    RecAdEntity entity = data.get(position);
//    ImageUtils.displayDefaultRoundImage(imageView,entity.icon,
//        R.drawable.icon_placeholder_banner);

    return convertView;
  }
}
